﻿using System.Security.Cryptography;
using cloud_store_rest_api;

namespace cloud_store_rest_api_window_phone
{
// ReSharper disable InconsistentNaming
    public class WindowPhoneHMACSHA1 : IHMACSHA1
// ReSharper restore InconsistentNaming
    {
        public byte[] Hash(byte[] key, byte[] content)
        {
            var hmac = new HMACSHA1(key);
            hmac.ComputeHash(content);
            return hmac.Hash;
        }
    }
}
